package com.hunters.web.wechat.entity.model;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

/**
 * @program: web-wechat
 * @description:
 * @author: 李二
 * @create: 2018/09/05 17:08
 **/
@Data
public class JsonResponse {

    @JSONField(name = "BaseResponse")
    private BaseResponse baseResponse;

    public boolean success() {
        return null != baseResponse && baseResponse.getRet().equals(0);
    }

}
